import request from "@/utils/request";

/**
 * @description 列表
 * @param params
 * @returns {*}
 */
export function list(params){
  return request({
    url:'/getArticleList',
    method:'GET',
    params
  })
}

/**
 * @description 新增/编辑
 * @param data
 * @returns {*}
 */
export function save(data){
  return request({
    url:'/insertAndUpdateArticle',
    method:'POST',
    data
  })
}

/**
 * 删除
 * @param params
 * @returns {*}
 */
export function deleteRow(params){
  return request({
    url:'/deleteArticle',
    method:'GET',
    params
  })
}
